package com.ruoyi.project.relation.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.alibaba.fastjson.annotation.JSONField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 单向业务关联对象 one_way_business_relationship
 * 
 * @author wb
 * @date 2021-04-14
 */
public class OneWayBusinessRelationshipEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String TABLE_NAME = "one_way_business_relationship";

    /** 主键 */
    private Long oneWayBusinessRelationshipId;

    /** 来源业务ID */
    @Excel(name = "来源业务ID")
    private Long sourceOwnerId;

    /** 所属业务名称 */
    @Excel(name = "所属业务名称")
    private String sourceOwnerName;

    /** 业务对应的ID */
    @Excel(name = "业务对应的ID")
    private Long targetOwnerId;

    /** 业务名称 */
    @Excel(name = "业务名称")
    private String targetOwnerName;

    /** 删除标志（0代表存在 1代表删除） */
    private Integer delFlag;

    public void setOneWayBusinessRelationshipId(Long oneWayBusinessRelationshipId) 
    {
        this.oneWayBusinessRelationshipId = oneWayBusinessRelationshipId;
    }

    public Long getOneWayBusinessRelationshipId() 
    {
        return oneWayBusinessRelationshipId;
    }
    public void setSourceOwnerId(Long sourceOwnerId) 
    {
        this.sourceOwnerId = sourceOwnerId;
    }

    public Long getSourceOwnerId() 
    {
        return sourceOwnerId;
    }
    public void setSourceOwnerName(String sourceOwnerName) 
    {
        this.sourceOwnerName = sourceOwnerName;
    }

    public String getSourceOwnerName() 
    {
        return sourceOwnerName;
    }
    public void setTargetOwnerId(Long targetOwnerId) 
    {
        this.targetOwnerId = targetOwnerId;
    }

    public Long getTargetOwnerId() 
    {
        return targetOwnerId;
    }
    public void setTargetOwnerName(String targetOwnerName) 
    {
        this.targetOwnerName = targetOwnerName;
    }

    public String getTargetOwnerName() 
    {
        return targetOwnerName;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public ToStringBuilder toStringBuilder(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oneWayBusinessRelationshipId", getOneWayBusinessRelationshipId())
            .append("sourceOwnerId", getSourceOwnerId())
            .append("sourceOwnerName", getSourceOwnerName())
            .append("targetOwnerId", getTargetOwnerId())
            .append("targetOwnerName", getTargetOwnerName())
            .append("createUserId", getCreateUserId())
            .append("createTime", getCreateTime())
            .append("updateUserId", getUpdateUserId())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            ;
    }


        @Override
        public String toString() {
            return toStringBuilder().toString();
        }
}
